Learn R Programming

rapport (version 0.51)

rp.label<-: Set Variable Label

Description

This function sets a label to a variable, by storing a character string to its label attribute.

Usage

rp.label(var) <- value

Arguments

var
a variable (see is.variable for details)
value
a character value that is to be set as variable label

See Also

rp.label

Examples

Run this code
rp.label(mtcars$mpg) <- "fuel consumption"
x <- rnorm(100); ( rp.label(x) <- "pseudo-random normal variable" )

Run the code above in your browser using DataLab